package cn.juque.simplefactory;

import cn.juque.simplefactory.factory.SuperFactory;
import cn.juque.simplefactory.product.Tesla;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>MainMethod</li>
 * </ul>
 * @date 2023-06-04 23:41:52
 **/
public class MainMethod {

    public static void main(String[] args) {
        Tesla tesla = SuperFactory.createCar(SuperFactory.MODEL_3);
        System.out.println("create a tesla:" + tesla.getName());
        tesla = SuperFactory.createCar(SuperFactory.MODEL_Y);
        System.out.println("create a tesla:" + tesla.getName());
    }
}
